<!-- 模块说明 -->

<template>
  <div>
    <Buttons :options="options" />
  </div>
</template>

<script setup>

import { Check, Search } from '@element-plus/icons-vue'

const options = [
  {
    text: '查询',
    type: 'primary',
    code: '', //按钮权限code
    icon: Search,
    click: () => {
      console.log('点击')
    }
  },
  {
    text: '重置',
    click() {
      console.log('点击')
    }
  },
  {
    text: '禁用',
    disabled: true,
    click() {
      console.log('点击')
    }
  },
  {
    icon: Check,
    click() {
      console.log('点击')
    }
  },
  {
    icon: Check,
    attrs: {
      //接收所有element-plus button属性
      circle: true
    },
    click() {
      console.log('点击')
    }
  }
]
 
</script>
<style lang="scss" scoped>
 
</style>